const express = require(`express`);
const router = express.Router();

const userCtrl = require('../controller/YXXCtrl');

// CMS-----------------------------

//返回所有
router.get('/rInfo',userCtrl.rInfo)

//后台查询
router.post('/rSearchINfo',userCtrl.rSearchINfo)

//根据订单号修改信息
router.post('/rEditInfo',userCtrl.rEditInfo);

//根据订单号修改状态
router.post('/rEditStatus',userCtrl.rEditStatus);

// uni-app-----------------

//查询体检加项
router.get('/p_addInfo',userCtrl.p_addInfo)
//根据套餐查加项
router.get('/rSelectAdd',userCtrl.rSelectAdd)
//只查套餐
router.get('/getMeal',userCtrl.getMeal)
//查询体检机构
router.get('/getOrg',userCtrl.getOrg)
//添加订单
router.get('/addReserveOrder',userCtrl.addReserveOrder)

//已体检的加项
router.get('/hasPayAdd',userCtrl.hasPayAdd);
//已体检的支付完成预约
// router.get('/hasPayReserve',userCtrl.hasPayReserve);
// 未体检的加项
router.get('/hasSelectAdd',userCtrl.hasSelectAdd)
//查询order数据
router.get('/hasSelectOrder',userCtrl.hasSelectOrder);
//待体检加项
router.get('/hasUpOrderAdd',userCtrl.hasUpOrderAdd);
//支付加项金额
router.get('/hasPay',userCtrl.hasPay);

//待支付付款
router.get('/noPay',userCtrl.noPay);

module.exports = router;